/*
** fill_struct_err_gest.c for  in /home/chreti_m//projet/RAYTRACER/init_cnf_file
** 
** Made by max chretien
** Login   <chreti_m@epitech.net>
** 
** Started on  Sat Apr 28 20:04:30 2012 max chretien
** Last update Mon Apr 30 21:31:47 2012 canh-kiet le
*/

#include	"rt.h"

int		cnt_params(char **params)
{
  int		i;

  i = 0;
  while (params[i])
    i++;
  return (i);
}

void		check_params(int ind, char **tab, int line_err)
{
  static int	t[10];
  int		i;

  if (ind == -1)
    {
      i = 0;
      while (i != 10)
	t[i++] = 0;
      return ;
    }
  if (t[ind]++ >= 1)
    disp_err(tab[0], line_err, "Already indicated");
}
